package com.ruoyi.tactics.algorithm;

import com.ruoyi.tactics.ZodiacResult;

public class TailAlgorithm extends AbstractAlgorithm {
    @Override
    public Boolean isWin(ZodiacResult zodiacResult, String... code) {
        Integer tail = zodiacResult.getTm() % 10;
        return tail.equals(Integer.parseInt(code[0]));
    }
}
